﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListItem.aspx.cs" Inherits="ListItem" MasterPageFile="~/MasterPageDetail.master" %>


        <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderRight" Runat="Server">

				<div class="head-sub"><%=GetLoaiSanPhamName() %></div>
				<div class="banner-sub">
					<img src="<%=LinkHelper.GetLinkHinhAnh(LoadBannerQuangCao())%>" width="100%" height="200px" />
				</div>
				<div class="right-pro">
				<div class="product">
                <asp:Repeater ID="repLoaiSanPham" runat="server" OnItemDataBound="repLoaiSanPham_OnItemDataBound">
                    <ItemTemplate>
					<div class="pro-item">
						<div class="head-item"><a href='<%#LinkHelper.LinkLoaiSanPhamCha(Eval("LoaiSanPhamID"))%>'><%#Eval("TenLoaiSanPham")%></a></div>
						<div class="item">
							<ul>
                                <asp:Repeater ID="repLoaiSanPhamCon" runat="server">
                                <ItemTemplate>
								    <li><a href='<%#LinkHelper.LinkLoaiSanPhamCon(Eval("LoaiSanPhamID"))%>'><%#Eval("TenLoaiSanPham")%></a></li>
                                </ItemTemplate>
                                </asp:Repeater>
							</ul>
							<div class="more"><a href='<%#LinkHelper.LinkLoaiSanPhamCha(Eval("LoaiSanPhamID"))%>'>>Chi tiết</a></div>
						</div>
						<div class="img-item">
							<a href='<%#LinkHelper.LinkLoaiSanPhamCha(Eval("LoaiSanPhamID"))%>'><img src="<%#LinkHelper.GetLinkHinhAnh(Eval("HinhAnh"))%>" /></a>
						</div>
					</div>
                    </ItemTemplate>
                </asp:Repeater>
					
				</div>
					<asp:Repeater runat="server" ID="repSanPham">
                        <ItemTemplate>
					<div class="pro-item">
						<div class="head-item"><a href='<%#LinkHelper.LinkSanPham(Eval("SanPhamID"))%>'><%#Eval("TenSanPham")%></a></div>
						<div class="item">
							<ul>
								<li>Hãng: <%#Eval("HangSanXuat")%></li>
								<li>Loại: <%#CommonHelper.RutGonStringVer2(Eval("ChungLoai").ToString(),20)%></li>
								<li>Giá: <%#Eval("Gia")%></li>
							</ul>
							<div class="more"><a href='<%#LinkHelper.LinkSanPham(Eval("SanPhamID"))%>'>Chi tiết</a></div>
						</div>
						<div class="img-item">
							<a href='<%#LinkHelper.LinkSanPham(Eval("SanPhamID"))%>'><img src="<%#LinkHelper.GetLinkHinhAnh(Eval("HinhAnh"))%>" /></a>
						</div>
					</div>
                        </ItemTemplate>
                    </asp:Repeater>
					<!--product2-->					
				</div>
                            <p runat="server" id="TongSanPham" style="font-weight: bold; margin-left: 30px; color: #545454; font-size: 12px;
        text-align: right">
        Tổng cộng:
        <asp:Label ID="ResultCount" runat="server"></asp:Label>
        sản phẩm
    </p>
    <center>
        <div style="font-size: 12px">
            <%if (TotalRecord > PagingSize)
              {%>
            <!-- Paging { -->
            <ul class="paginator">
                <%= PageString%>
            </ul>
            <!-- } Paging -->
            <%} %>
        </div>
    </center>
    </asp:Content>

			